package com.fept.msgcore.msgserver.netty.handler;

import io.netty.handler.codec.MessageToByteEncoder;

/**
 * Created by Srma on 1/13/2017.
 */
public class ProtocolMessageEncoderFactory extends EncoderFactory {
    /**
     *
     * @param name
     */
    public ProtocolMessageEncoderFactory(String name) {
        super(name);
    }

    /**
     *
     */
    @Override
    public MessageToByteEncoder<?> newEncoder() {
        return new ProtocolMessageEncoder(this.getName());
    }
}
